$def with()

$var title:	Replace
$var css:	grid.css replace.css
$var js:	grid.js replace.js

$:gridrender.grid("puzzle", "Input the sudoku puzzle to replace:", None, "p")

<div id="map">
	<table>
		<caption>
			Replace Rules:
		</caption>
		<tbody>
		$for i in range(1, GridN + 1):
			<tr>
				<td>
					$i
				</td>
				<td>
					=>
				</td>
				<td>
					<input id="$i" type="text" class="cell">
				</td>
			</tr>
		</tbody>
	</table>
	<input id="submit" type="button" value="Submit">
</div>

$:gridrender.grid("replace", "Click 'Submit' to get replacement:", None, "r")

